﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" Codebehind="teachersituation.aspx.cs"
    Inherits="LabMS.Web.OpenProject.teachersituation" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>教师开放实验安排</title>
    <link type="text/css" rel="stylesheet" href="../style/screen.css" /> 
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../style/ie7.css" />
    <![endif]-->
</head>
<body class="mainBody">
    <form id="form1" runat="server">
        <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                       教师开放实验安排</label>
                </div>
            </div>
        </div>
        <div class="main">
            <p>
                学年<asp:DropDownList ID="ddlYear" runat="server">
                </asp:DropDownList>
                学期<asp:DropDownList ID="ddlSemester" runat="server">
                    <asp:ListItem Text="春季学期" Value="1"></asp:ListItem>
                    <asp:ListItem Text="秋季学期" Value="2"></asp:ListItem>
                </asp:DropDownList>
                老师<input id="tbTeacherName" readonly="readonly" style="width: 78px" runat="server"
                    type="text" />
                <input id="tbTeacherCode" style="display: none" runat="server" type="text" />
                 <% if (UserType == "mana")
                  {%>
                <input id="Button1" name="btProjectSubjectselect" onclick="OpenEditWin('../CommonPage/TeacherList.aspx?Type=course',500,400,'tbTeacherCode','tbTeacherName')"
                    type="button" value="..." class="button" />
                   <%} %> 
                <asp:Button ID="btnSearch" CssClass="button" runat="server" Text="查询" OnClick="btnSearch_Click" />
                <asp:Button ID="btnRest" CssClass="button" runat="server" Text="重置" OnClick="btnRest_Click" />
            </p>
            <p>
                <asp:Label ID="lbSituation" runat="server" Text=""></asp:Label>
            </p>
            <asp:Label ID="lbErr" runat="server" ForeColor="Red" Text="Err" Visible="False"></asp:Label>
        </div>

        <script type="text/javascript">
          function OpenEditWin(frmWin,width,height, obj1, obj2) 
          {
               var me; 
               me = window;  
               var ret = window.showModalDialog(frmWin,me,'dialogWidth='+width +'px;dialogHeight='+height+'px;help:no;status:no');
                  if (ret != null) 
                { 
                    document.getElementById(obj1).value = ret[0];
                    document.getElementById(obj2).value = ret[1];
                }  
          }
        </script>

    </form>
</body>
</html>
